﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="FisheryPlatform.Web.Admin.Login" %>

<%@ Register TagName="Style" TagPrefix="Menu" Src="~/Modules/Menu/StyleMenu.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <Menu:Style runat="server" ID="menuStyle" Title=""></Menu:Style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="wrapper">
        <div class="content">
            <table style="margin-top: 150px; margin-left: 300px;">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <label id="lbl_Tips" runat="server" class="validate_red">
                        </label>
                    </td>
                </tr>
                <tr>
                    <td>
                        登录名：
                    </td>
                    <td>
                        <input type="text" runat="server" id="txt_LoginName" />
                    </td>
                </tr>
                <tr>
                    <td>
                        密码：
                    </td>
                    <td>
                        <input type="password" runat="server" id="txt_Password" />
                    </td>
                </tr>
                <tr>
                    <td>
                        验证码：
                    </td>
                    <td>
                        <input type="text" runat="server" id="txt_Code" size="5" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <input type="submit" value="登录" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
<script type="text/javascript">
    $(jDoc("txt_Code")).bind("focus", function () {
        if (jDoc("img_Code") == null) {
            var img = document.createElement("img");
            img.id = "img_Code";
            img.setAttribute("url", "/Ajax/ValidateCode.ashx");
            img.title = "看不清，请点击图片更换";
            img.onclick = function () {
                this.src = this.getAttribute("url") + "?rn=" + Math.random();
            }
            img.src = img.getAttribute("url") + "?rn=" + Math.random();
            this.parentNode.appendChild(img);
        }
    })
</script>
